package com.example.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

import com.example.rules.MySelfRule;

/**
 * 
 * @author JZH
 * 
 * 当需要自定义Ribbon配置类的时候，加上@@RibbonClient注解
 */
@EnableEurekaClient
@SpringBootApplication
@RibbonClient(name="microservicecloud-dept", configuration=MySelfRule.class)
public class DeptConsumer9001_App {
	public static void main(String[] args) {
		SpringApplication.run(DeptConsumer9001_App.class, args);
	}
}
